<script src="/vue.js"></script>

<div id="app">
    <p v-text="msgText"></p>
    <p v-html="msgHtml"></p>
</div>

<script>
    var vue = new Vue ({
        el: "#app",
        data: {
            msgText: "<h2>文本</h2>",
            msgHtml: "<h2>HTML</h2>"
        }
    })
</script>

<style>

</style>